// 封装登录的方法
import request from "../utils/request";

export function login(data) {
  // await
  return request({
    method: 'POST',
    url: '/authorizations',
    data,
  })
}

export function getProfile() {
  return request({
    method: 'GET',
    url: '/user/profile',
  })
}
